// 表格列
import tagRender from '@/components/aggridCellRenDerer/tagRender.vue'

let tableColumns: any = [
    {
        headerCheckboxSelection: true,
        checkboxSelection: true,
        width: 50,
        showDisabledCheckboxes: false,
        pinned: 'left',
    },
    {
        headerName: '入库单号',
        field: 'stockInCode',
        width: 150,
    },
    {
        headerName: '入库类型',
        field: 'stockInType',
        width: 150,
    },
    {
        headerName: '公司',
        field: 'companyName',
        width: 150,
    },
    {
        headerName: '仓库',
        field: 'warehouseName',
        width: 150,
    },
    {
        headerName: '状态',
        field: 'auditState',
        width: 200,
        valueGetter: (params: any) => {
            return params.data.auditState == 0 ?
                '未审核'
                : params.data.auditState == 1 ?
                    '已审核' :

                    ''
        }
    },
    {
        headerName: '布笼',
        field: 'shelveName',
        width: 150,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 150,
    },
    {
        headerName: '织布单号',
        field: 'planOrderCode',
        width: 150,
    },
    {
        headerName: '委外单号',
        field: 'oemOrder',
        width: 150,
    },
    {
        headerName: '客户订单号',
        field: 'customOrderCode',
        width: 200,
    },
    {
        headerName: '坯布编号',
        field: 'greyCode',
        width: 150,
    },
    {
        headerName: '坯布名称',
        field: 'greyName',
        width: 150,
    },
    {
        headerName: '坯布批号',
        field: 'greyBatchNo',
        width: 150,
    },
    {
        headerName: '条形码',
        field: 'clothfiyCode',
        width: 200,
    },
    {
        headerName: '机台',
        field: 'machineCode',
        width: 200,
    },
    {
        headerName: '机布号',
        field: 'machineGreyCode',
        width: 200,
    },
    {
        headerName: '匹号',
        field: 'horseNo',
        width: 200,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 200,
    },
    {
        headerName: '等级',
        field: 'grade',
        width: 200,
    },
    {
        headerName: '原料编号',
        field: 'rawmaterialCode',
        width: 200,
    },
    {
        headerName: '原料名称',
        field: 'rawmaterialName',
        width: 200,
    },
    {
        headerName: '纱批',
        field: 'yarnBatch',
        width: 200,
    },
    {
        headerName: '成品门幅',
        field: 'productWidth',
        width: 200,
    },
    {
        headerName: '成品克重',
        field: 'productGramWeight',
        width: 200,
    },
    {
        headerName: '针寸',
        field: 'workDrum',
        width: 200,
    },
    {
        headerName: '创建人',
        field: 'createName',
        width: 200,
    },
    {
        headerName: '创建时间',
        field: 'createTime',
        width: 200,
    },

]
let tableColumns1: any = [
    {
        headerCheckboxSelection: true,
        checkboxSelection: true,
        width: 50,
        showDisabledCheckboxes: false,
        pinned: 'left',
    },
    {
        headerName: '公司',
        field: 'companyName',
        width: 150,
    },
    {
        headerName: '条形码',
        field: 'clothfiyCode',
        width: 150,
    },
    {
        headerName: '机台',
        field: 'machineCode',
        width: 150,
    },
    {
        headerName: '机布号',
        field: 'machineGreyCode',
        width: 150,
    },
    {
        headerName: '匹号',
        field: 'horseNo',
        width: 150,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 150,
    },
    {
        headerName: '等级',
        field: 'grade',
        width: 200,
    },
    {
        headerName: '织布单号',
        field: 'planOrderCode',
        width: 200,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 200,
    },
    {
        headerName: '客户订单号',
        field: 'customOrderCode',
        width: 200,
    },
    {
        headerName: '坯布编号',
        field: 'greyCode',
        width: 200,
    },
    {
        headerName: '坯布名称',
        field: 'greyName',
        width: 200,
    },
    {
        headerName: '坯布批号',
        field: 'greyBatchNo',
        width: 200,
    },
    {
        headerName: '原料编号',
        field: 'rawmaterialCode',
        width: 200,
    },
    {
        headerName: '原料名称',
        field: 'rawmaterialName',
        width: 200,
    },
    {
        headerName: '纱批',
        field: 'yarnBatch',
        width: 200,
    },
    {
        headerName: '成品门幅',
        field: 'productWidth',
        width: 200,
    },
    {
        headerName: '成品克重',
        field: 'productGramWeight',
        width: 200,
    },
    {
        headerName: '针寸',
        field: 'workDrum',
        width: 200,
    },
    {
        headerName: '检验日期',
        field: 'billDate',
        width: 200,
    },
    {
        headerName: '织单类型',
        field: 'weaveOrderTypeName',
        width: 200,
    },
    {
        headerName: '设备机型',
        field: 'machineTypeName',
        width: 200,
    },
    
]
let tableColumns2: any = [
    {
        headerName: '客户名称',
        field: 'companyName',
        width: 150,
    },
    {
        headerName: '客户订单号',
        field: 'customOrderCode',
        width: 200,
    },
    {
        headerName: '织布单号',
        field: 'warehouseName',
        width: 150,
    },
    {
        headerName: '坯布编号',
        field: 'greigeName',
        width: 150,
    },
    {
        headerName: '坯布名称',
        field: 'planOrderCode',
        width: 150,
    },
    {
        headerName: '坯布批号',
        field: 'horses',
        width: 150,
    },
    {
        headerName: '条形码',
        field: 'greyCode',
        width: 150,
    },
    {
        headerName: '机台',
        field: 'greyName',
        width: 200,
    },
    {
        headerName: '机布号',
        field: 'greyBatchNo',
        width: 200,
    },
    {
        headerName: '匹号',
        field: 'horseNo',
        width: 200,
    },
    {
        headerName: '重量',
        field: 'weight',
        width: 200,
    },
    {
        headerName: '等级',
        field: 'billDate',
        width: 200,
    },
    {
        headerName: '原料编号',
        field: 'rawmaterialCode',
        width: 200,
    },
    {
        headerName: '原料名称',
        field: 'rawmaterialName',
        width: 200,
    },
    {
        headerName: '纱批',
        field: 'yarnBatch',
        width: 200,
    },
    {
        headerName: '成品门幅',
        field: 'productWidth',
        width: 200,
    },
    {
        headerName: '成品克重',
        field: 'productGramWeight',
        width: 200,
    },
    {
        headerName: '针寸',
        field: 'billDate',
        width: 200,
    },
    {
        headerName: '检验日期',
        field: 'billDate',
        width: 200,
        // valueGetter: (params: any) => {
        //     return params.data.firstName + params.data.lastName;
        // } 使用此属性可以对数据进行处理
    },
]
let tableColumns3: any = [
    {
        headerCheckboxSelection: true,
        checkboxSelection: true,
        width: 50,
        showDisabledCheckboxes: false,
        pinned: 'left',
    },
    {
        headerName: '公司',
        field: 'companyName',
        width: 150,
    },
    {
        headerName: '条形码',
        field: 'clothfiyCode',
        width: 150,
    },
    {
        headerName: '重量',
        field: 'posteriorWeight',
        width: 150,
        valueGetter: (params: any) => {
            if (params.data.posteriorWeight) {
                return params.data.posteriorWeight = params.data.posteriorWeight
            } else {
                return params.data.posteriorWeight = params.data.pieceWeight
            }
        }
    },
    {
        headerName: '等级',
        field: 'grade',
        width: 150,
    },
    {
        headerName: '织布单号',
        field: 'planOrderCode',
        width: 150,
    },
    {
        headerName: '委外单号',
        field: 'oemOrder',
        width: 150,
    },
    {
        headerName: '客户名称',
        field: 'customName',
        width: 150,
    },
    {
        headerName: '客户订单号',
        field: 'customOrderCode',
        width: 200,
    },
    {
        headerName: '坯布编号',
        field: 'greyCode',
        width: 150,
    },
    {
        headerName: '坯布名称',
        field: 'greyName',
        width: 150,
    },
    {
        headerName: '坯布批号',
        field: 'greyBatchNo',
        width: 150,
    },
    {
        headerName: '原料编号',
        field: 'rawmaterialCode',
        width: 150,
    },
    {
        headerName: '原料名称',
        field: 'rawmaterialName',
        width: 150,
    },
    {
        headerName: '纱批',
        field: 'yarnBatch',
        width: 150,
    },
    {
        headerName: '成品门幅',
        field: 'width',
        width: 150,
    },
    {
        headerName: '成品克重',
        field: 'weight',
        width: 150,
    },
    {
        headerName: '针寸',
        field: 'workDrum',
        width: 150,
    },
]
export {
    tableColumns,
    tableColumns1,
    tableColumns2,
    tableColumns3,
}